﻿<UserControl x:Class="GraphDrawer.SocialNetworks.SocialNetworksList"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="780" Height="600">        
        <Grid x:Name="LayoutRoot" Background="White">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30" />
                    <RowDefinition />
                    <RowDefinition Height="40" />
                </Grid.RowDefinitions>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="5" />
                    <ColumnDefinition />
                    <ColumnDefinition Width="5" />
                </Grid.ColumnDefinitions>

                <Border Background="CornflowerBlue" Grid.ColumnSpan="3" Grid.RowSpan="3" />
                <TextBlock x:Name="txtTitle" Text="CARE" Grid.Column="1" Grid.Row="0"
				Foreground="Black" FontSize="20" FontWeight="bold" />

                <Border Background="White" Grid.Column="1" Grid.Row="1" CornerRadius="5">
                    <Grid ShowGridLines="False">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="35" />
                            <RowDefinition />
                            <RowDefinition Height="5" />
                        </Grid.RowDefinitions>

                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="5" />
                            <ColumnDefinition />
                            <ColumnDefinition Width="5" />
                        </Grid.ColumnDefinitions>

                        <TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="20"
							Grid.Row="0" Grid.ColumnSpan="3" >
						Social Networks Models Management Module
                        </TextBlock>
                        <Line StrokeThickness="1" Stroke="Black" X1="0" X2="770" Y1="30" Y2="30"
						Grid.ColumnSpan="3" Grid.RowSpan="3" />

                        <Grid ShowGridLines="False" Grid.Column="1" Grid.Row="1">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="200" />
                                <ColumnDefinition Width="*" />
                            </Grid.ColumnDefinitions>

                            <Grid ShowGridLines="False" Grid.Column="0">
 
                                <StackPanel HorizontalAlignment="Stretch" Orientation="Vertical"
									Margin="5,5,5,5" Grid.Row="1">
                                    <Button  Height="45" Width="158" Margin="0,10,0,0" Click="importSocialNetworkButton_Click" >
                                        <TextBlock TextWrapping="Wrap" TextAlignment="Center">
					                            Import community from external file
                                        </TextBlock>
                                    </Button>
                                    <Button Height="45" Width="158" Margin="0,10,0,0" Click="createNetworkButton_Click">
                                        <TextBlock TextWrapping="Wrap" TextAlignment="Center">
					                            Generate and save commmunity to file
                                        </TextBlock>
                                    </Button>

                                    <StackPanel x:Name="ControlPanel" Visibility="Collapsed" >
                                        <TextBlock Margin="5,200,0,0">Choose layout:</TextBlock>
                                        <ComboBox Name="layoutChooser" Width="160" Height="20" SelectionChanged="LayoutChooser_SelectionChanged"></ComboBox>
                                        <Button Click="BalanceGraph_Click" Width="160" Height="20" Content="Balance graph" Margin="0,20,0,0"></Button>
                                        <TextBlock Margin="5">Zoom:</TextBlock>
                                        <Slider Name="zoom" Width="160" Value="4" ValueChanged="Zoom_ValueChanged"></Slider>
                                    </StackPanel>
                                </StackPanel>
                            </Grid>

                            <Grid ShowGridLines="False" Grid.Column="1">
                                <Border BorderBrush="Gray" BorderThickness="1" Grid.Row="1">
                                    <Grid ShowGridLines="False">
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="25" />
                                            <RowDefinition Height="*" />
                                        </Grid.RowDefinitions>

                                        <TextBlock TextAlignment="Center" VerticalAlignment="Center" FontSize="14"
											Grid.Row="0">
										Model visualization:
                                        </TextBlock>
                                        <Line StrokeThickness="2" Stroke="Gray" X1="0" X2="560" Y1="25" Y2="25" />
                                        <Canvas Name="rootCanvas" Width="550" Height="255" Margin="5,5,5,5" Grid.Row="1">
                                        
                                            <!-- tu wyswietlanie -->
                                            
                                        </Canvas>
                                    </Grid>
                                </Border>
                            </Grid>
                        </Grid>
                    </Grid>
                </Border>

                <Button x:Name="exit" Content="Exit" HorizontalAlignment="Left" Grid.Column="1" Grid.Row="2"
				Width="70" Height="25" Click="exit_Click"/>

            </Grid>
        </Grid>
</UserControl>
